--[[
-- Author:      feilong
-- DateTime:    2020-10-10 17:19:33
-- Description: 节点的服务管理
    1更方便的取得节点中各服务的信息，
    2处理节点间的消息
    3开启Gate端口监听消息，client消息由watchdog处理
--]]


local M = class("Handler")

---------------------------------------------------------
-- Private
---------------------------------------------------------
function M:ctor()
    self:register()
end

--注册本服务里的消息
function M:register()
    g.register("word_filter", handler(self, self.onWordFilter)) --过滤字符串

end


---------------------------------------------------------
-- CMD
---------------------------------------------------------
function M:onStart()
end

function M:onWordFilter(msg)
    return g.word_filter:filter(msg)
end


return M